package me.hl.proxy;

import java.lang.reflect.Proxy;

/**
 * Created by pulangke on 2017/2/10.
 */
public class ProxyFactory {

    public static Object getProxy(Object object, Class<?>[] interfaces) {
        return Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(), interfaces, new MyInvocation(object));
    }

}
